<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%
        String path = request.getContextPath();
        String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>
<%--<c:set var="picPath" value="http://pic.cnxingyi.com"/>--%>
<c:set var="picPath" value="${pageContext.request.contextPath}/pic"/>
<c:set var="basePath" value="${basePath}"/>
<script type="text/javascript">
    var ctx = '<%=request.getContextPath() %>';
    var picPath = ctx+'/pic';
</script>